<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/8
 * Time: 15:35
 */

namespace App\Repositories\Eloquent;


use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Repositories\Contracts\ManageRepository;
use App\Models\Manage;

/**
 * Class ManageRepositoryEloquent
 * @package App\Repositories\Eloquent
 */
class ManageRepositoryEloquent extends BaseRepository implements ManageRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return Manage::class;
    }



    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }
}